/**
 * Witontek.com.
 * Copyright (c) 2012-2018 All Rights Reserved.
 */
package com.witon.bfb.job;

import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.scheduling.annotation.Scheduled;

import com.witon.bfb.BfbIndex;
import com.witon.bfb.vo.BfbUser;

/**
 * 
 * @author Long
 * @version $Id: BfbJob.java, v 0.1 2018年11月14日 下午2:30:05  xiaolong.ma  Exp $
 */

public class BfbJob {
    private static final Logger logger = LoggerFactory.getLogger(BfbJob.class);

    private List<BfbUser>       userList;

    public List<BfbUser> getUserList() {
        return userList;
    }

    public void setUserList(List<BfbUser> userList) {
        this.userList = userList;
    }

    @Scheduled(cron = "10 45 8 * * ?")
    public void doJob() throws Exception {
        logger.info("start...");
        BfbIndex bfb = new BfbIndex();
        bfb.start(userList);
    }
}
